#include "led.h"

void ledinit(void)
{
	RCC->APB2ENR|=1<<3;			//使能PORTB

	GPIOB->CRL&=0xff0fffff;		
	GPIOB->CRL|=0x00300000;		//PB.5推挽输出
	
	GPIOB->ODR|=1<<5;			//PB.5高电位

	RCC->APB2ENR|=1<<6;			//使能PORTE
	GPIOE->CRL&=0xff0fffff;
	GPIOE->CRL|=0x00300000;
	GPIOE->ODR|=1<<5;
}
